package com.huaxin.dss2.util;

import java.math.BigDecimal;
import org.apache.directory.api.util.Strings;

/**
 * Created with InteliJ IDEA
 * user:clearcpan
 * Date:2017/4/11
 * Time:9:52
 */
public class JavaUtils {
    public static boolean isNum(String str) {
        try {

            new BigDecimal(str);
            return true;
        } catch (Exception e) {
            return false;
        }
    }

    public static Boolean isNullStr(String str) {
        return Strings.isEmpty(str);
    }
}
